home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / DO1002.ARJ / GOTOC.SCR < prev    next >
Text File  |  1991-12-29  |  891b  |  33 lines

  1. .pg wi full clr cy
  2.     COMMAND NAME»gray«: »%t« GotoCharacterLabel »ye«
  3.  
  4.     /GOTOC {Prompt} {List}[ {variable}][ LC]
  5. /cw
  6.     The »%t«GotoCharacterLabel»#« command is the same as the
  7.     »%t«GetCharacter»#« command except that it »wh«branches to a label
  8.     corresponding to the character entered by the user»#«.
  9.  
  10.     Like the »%t«GetCharacter»#« command, the Character is stored in
  11.     the system variable »ye«CHAR»#« if »cy«{variable}»#« is not entered.
  12. .pg clr
  13.     Here is an example.  Press »bo«<enter>»#« to execute each line.
  14.     Notice that the selection is placed in the variable »ye«CHOICE»#«.
  15.  
  16. |/GOTOC "Choice (A,B,C): " ABC choice
  17. :A
  18. "A" BRANCH
  19.  
  20. |   This is the "»ye«%choice»#«" branch
  21. /GOTO GotocEnd
  22. :B
  23. "B" BRANCH
  24.  
  25. |   This is the "»ye«%choice»#«" branch.
  26. /GOTO GotocEnd
  27. :C
  28. "C" BRANCH
  29.  
  30. |    This is the "»ye«%choice»#«" branch.
  31. :GOTOCEND
  32. /ENDEXEC
  33.